package ${package}.backstage.service;

import ${package}.common.model.User;
import ${package}.dao.entity.${moduleName}.${ClassName};
import ${package}.dao.vo.${moduleName}.*;
import ${package}.common.model.PageResponse;

/**
* ${tableComment}
*
* @author ${author} ${email}
* @since ${version} ${date}
*/
public interface ${ClassName}Service {
    /**
     * 查询${tableComment}
     *
     * @param id 主键
     * @return ${tableComment}
     */
    public ${ClassName} select${ClassName}ById(Long id);

    /**
     * 查询${tableComment}列表
     *
     * @param searchVO ${tableComment}
     * @return ${tableComment}集合
     */
    public PageResponse<${ClassName}Result> select${ClassName}List(${ClassName}SearchParam searchVO);

    /**
     * 新增${tableComment}
     *
     * @param createVO ${tableComment}
     * @param user
     * @return 结果
     */
    public int insert${ClassName}(${ClassName}CreateParam createVO, User user);

    /**
     * 修改${tableComment}
     *
     * @param updateVO ${tableComment}
     * @param user
     * @return 结果
     */
    public int update${ClassName}(${ClassName}UpdateParam updateVO, User user);

    /**
     * 批量删除${tableComment}
     *
     * @param ids 需要删除的${tableComment}主键集合
     * @return 结果
     */
    public int delete${ClassName}ByIds(String ids);


}
